const dao = require('../dao/serviceAgencyDao');
const express = require('express');
const router = express.Router();

router.get('/GetLegalServiceAgencyList', (req, res) => {
  const data = dao.getLegalServiceAgencyList();
  res.json(data);
})

router.get('/GetLegalServiceAgencyInfo?:GuidLegalServiceAgency', (req, res) => {
  const guidLegalServiceAgency = req.query['GuidLegalServiceAgency'] || '这是一个默认的值，因为你在参数中没有传递Guid';
  const data = dao.getLegalServiceAgencyInfo(guidLegalServiceAgency);
  res.json(data);
})

module.exports = router;